package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 仓位对象 warehouse_position
 * 
 * @author ruoyi
 * @date 2025-01-18
 */
public class WarehousePosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String code;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String name;

    /** 库位类型 */
    @Excel(name = "库位类型")
    private String type;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isEnable;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private Integer isDefault;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setIsEnable(Integer isEnable) 
    {
        this.isEnable = isEnable;
    }

    public Integer getIsEnable() 
    {
        return isEnable;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("warehouseId", getWarehouseId())
            .append("isEnable", getIsEnable())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .toString();
    }
}
